package com.qf.md.unit.param;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zdl
 * @date 2025/3/4
 */
@Data
public class DownLoadParam {
    @ExcelProperty(value = "单位编码" ,index = 0)
    private String measureCode;   // measure_code
    @ExcelProperty(value = "单位名称",index = 1)
    private String measureName;   // measure_name
    @ExcelProperty(value = "是否主单位",index = 2)
    private String primaryFlag;   // primary_flag
    @ExcelProperty(value = "与主单位换算比例",index = 3)
    private Double changeRate;    // change_rate
    @ExcelProperty(value = "是否启用",index = 4)
    private String enableFlag;    // enable_flag
    @ExcelProperty(value = "备注" ,index = 5)
    private String remark;        // remark
    @ExcelProperty(value = "创建时间" ,index = 6)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;      // create_time
}
